using System;
using System.Collections.Generic;
using System.Text;

namespace ShareTools.SolutionManagerLibrary
{
    public class WSP
    {
        #region Variables
        //common
        string name;
        string lcid;
        string location;

        //common to deploy and retract solution
        string url;
        List<string> urlList;
        DateTime timeToDeploy;
        bool isImmediate;
        bool isLocal;

        //specific to deploy
        bool isGACDeploymentAllowed;
        bool isCASPoliciesAllowed;
        bool isForced;

        //specific to delete
        bool isOverride; 
        #endregion

        #region Properties
        public List<string> UrlList
        {
            get { return urlList; }
            set { urlList = value; }
        }

        public bool IsOverride
        {
            get { return isOverride; }
            set { isOverride = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public string Lcid
        {
            get { return lcid; }
            set { lcid = value; }
        }
        public string Location
        {
            get { return location; }
            set { location = value; }
        }

        public string Url
        {
            get { return url; }
            set { url = value; }
        }

        public DateTime TimeToDeploy
        {
            get { return timeToDeploy; }
            set { timeToDeploy = value; }
        }

        public bool IsImmediate
        {
            get { return isImmediate; }
            set { isImmediate = value; }
        }

        public bool IsLocal
        {
            get { return isLocal; }
            set { isLocal = value; }
        }

        public bool IsGACDeploymentAllowed
        {
            get { return isGACDeploymentAllowed; }
            set { isGACDeploymentAllowed = value; }
        }

        public bool IsCASPoliciesAllowed
        {
            get { return isCASPoliciesAllowed; }
            set { isCASPoliciesAllowed = value; }
        }

        public bool IsForced
        {
            get { return isForced; }
            set { isForced = value; }
        } 
        #endregion

        public WSP()
        {
            UrlList = new List<string>();
        }

    }
}
